package com.yanqu.road.server.gameplayer.module.activity.goldautumn;

import com.yanqu.road.entity.activity.goldautumn.GoldAutumnCell;

import java.util.ArrayList;
import java.util.List;

/**
 * 规划结果
 */
public class GoldAutumnJumpPlanResult {

    private List<Integer> stepList;

    private List<GoldAutumnCell> cellList = new ArrayList<>();

    public List<Integer> getStepList() {
        return stepList;
    }

    public void setStepList(List<Integer> stepList) {
        this.stepList = stepList;
    }

    public List<GoldAutumnCell> getCellList() {
        return cellList;
    }

    public void setCellList(List<GoldAutumnCell> cellList) {
        this.cellList = cellList;
    }

    //结果评分
    public int calScore(){
        int sum = 0;
        for (GoldAutumnCell cell : cellList) {
            switch (cell.getCt()){
                case 1:
                        sum += 1;
                        break;
                case 2:
                        sum += 10;
                        break;
                case 3:
                        sum += 100;
                        break;
                case 4:
                        sum += 1000;
                        break;
                case 5:
                        sum += 0;
                        break;
            }
        }
        return sum;
    }
}
